package com.jds.test.httpproxy.httpclient;

import io.netty.channel.ChannelHandlerContext;

import java.util.Map;

/**
 * Created by joyce on 2019/12/26.
 */
public class OriginHttp {
    private String method;
    private String uri;
    private Map<String, String> headers;
    private byte [] body;
    ChannelHandlerContext context;

    public OriginHttp(String method, String uri, Map<String, String> headers, byte [] body, ChannelHandlerContext context) {
        this.method = method;
        this.uri = uri;
        this.headers = headers;
        this.body = body;
        this.context = context;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String getUri() {
        return uri;
    }

    public void setUri(String uri) {
        this.uri = uri;
    }

    public Map<String, String> getHeaders() {
        return headers;
    }

    public void setHeaders(Map<String, String> headers) {
        this.headers = headers;
    }

    public byte[] getBody() {
        return body;
    }

    public void setBody(byte[] body) {
        this.body = body;
    }

    public ChannelHandlerContext getContext() {
        return context;
    }

    public void setContext(ChannelHandlerContext context) {
        this.context = context;
    }
}
